// 引入路由
import Vue from "vue"
import VueRouter from "vue-router"

import Home from "../views/Home";
import Login from "../views/Login";

// 把路由作为插件使用
Vue.use(VueRouter)


// 实例化路由得到路由对象
export default new VueRouter({
    //使用routes配置项配置路由表
  routes: [
    {
      path: "/home",
      component: Home,
    },
    {
      path: "/login",
      component: Login,
    },
  ],
})